//
//  ViewController.h
//  Dispatch
//
//  Created by hyeyeon on 14. 1. 13..
//  Copyright (c) 2014년 hyeyeon. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <FacebookSDK/FacebookSDK.h>
#import <CoreLocation/CoreLocation.h>
#import <MessageUI/MFMailComposeViewController.h>

#import "TitleView.h"
#import "AppDelegate.h"

#import "TitleView.h"
#import "IssueView.h"
#import "BattleView.h"
#import "CaptureView.h"
#import "MyView.h"
#import "RankingView.h"
#import "SearchView.h"
#import "StarView.h"
#import "BattlingView.h"
#import "BattleRankingView.h"

#import "PhotoViewController.h"

//sdk
#import <iAd/iAd.h>
#import "ADBanner.h"
#import "GADBannerView.h"

#import <FacebookSDK/FacebookSDK.h>

@class AppDelegate;
@class TitleView;
@class IssueView;
@class SearchView;
@class RankingView;
@class BattleView;
@class MyView;
@interface ViewController : UIViewController <ADBannerDelegate, GADBannerViewDelegate, ADBannerViewDelegate,MFMailComposeViewControllerDelegate,FBLoginViewDelegate>
{
    AppDelegate *appDelegate;
    
    UIView *introBackView;  //애니메이션을 위한 뷰
    UIView *introView;
    
    //menu
    UIView      *menuBackView;
    IssueView   *issueView;
    BattleView  *battleView;
    CaptureView *captureView;
    MyView      *myView;
    RankingView *rankingView;
    NSInteger   selectViewIndex;
    NSInteger   searchUnderView;
    
    //sdk
    ADBanner        *manBanner;
    GADBannerView   *admobBanner;
    ADBannerView    *iadBanner;
    NSInteger       currentSDKIndex;    //1:MAN 2:IAD 3:ADMOB
    
    //네트워크 받는중
    BOOL duringNetwork;
    
    //sns:facebook
    BOOL enableFacebook;
    
}
@property (nonatomic, strong) NSMutableData *responseData;
@property (nonatomic,retain) TitleView *titleView;
@property (nonatomic, retain) UIView *introView;
@property BOOL finishedAnimation;

@property (nonatomic, retain) IssueView *issueView;
@property (nonatomic, retain) BattleView  *battleView;
@property (nonatomic, retain) RankingView *rankingView;
@property (nonatomic, retain) MyView      *myView;


//animation
-(void)introAnimationEnd;

//man
-(void)requestManSDK;

-(void)clickMenu:(NSInteger)menuIndex;  //메뉴버튼 누를때(이슈, 배틀, 직찍...등등)
-(void)startRankingRolling; //랭킹롤링시작~
-(void)sdkHidden:(BOOL)yn;

//검색
-(void)appearSearchView;
-(void)removeSearchView;

//스타
-(void)appearStarListToID:(NSString*)starID;     //스타정보리스트(star.php)보여줌
-(void)appearStarListToID:(NSString *)starID andPushID:(NSString*)pushID;   //푸쉬에서 넘어올때 스타정보리스트 보여줌
-(void)removeStarView;                          //스타정보리스트(star.php)뗌

//무한배틀
-(void)appearBattlingView:(NSNumber*)number;
-(void)removeBattlingView;

//지난배틀순위
-(void)appearBattleRankingViewWithDate:(NSString*)dateStr;
-(void)removeBattleRankingView;

//photoviewcontroller
-(void)requestPhotoID:(NSString*)photoID;
-(void)apearPhotoControllerFromScheme:(NSInteger)menuIndex andId:(NSString*)idStr;

-(void)appearMail;  //메일

-(void)requestSDK;  //재요청

@end
